package chap4.Task;
import java.util.Scanner;
public class Task7 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("请输入10个数:");
        int i = 1;
        int sum=0;
        while (i<=10) {
           sum+=input.nextInt();
           i++;
        }
        System.out.print("输入10个数的和为" +sum);
    }

}
